package top.dfghhj.anhanx.oauth.dao.impl;

import org.springframework.stereotype.Repository;
import top.dfghhj.anhanx.oauth.dao.SysUserRoleDao;
import top.dfghhj.anhanx.oauth.entity.DO.SysUserRole;
import top.dfghhj.anhanx.oauth.mapper.SysUserRoleMapper;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class SysUserRoleDaoImpl implements SysUserRoleDao {

    @Resource
    private SysUserRoleMapper sysUserRoleMapper;


    @Override
    public List<SysUserRole> findByUserId(Long userId) {
        return sysUserRoleMapper.findByUserId(userId);
    }
}
